package cn.edu.hnu.gpg.controller;

import cn.edu.hnu.gpg.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
public class AdminController {

    private final AdminService adminService;

    @Autowired
    public AdminController(AdminService adminService) {
        this.adminService = adminService;
    }

    @RequestMapping("/add_account")
    public String toAddAccount() {
        return "jsp/admin/add_account.jsp";
    }

    @RequestMapping("/modify_account")
    public String toModifyAccount() {
        return "jsp/admin/modify_account.jsp";
    }

    @RequestMapping("/disable_account")
    public String toDisableAccount() {
        return "jsp/admin/disable_account.jsp";
    }

    @RequestMapping("/change_password")
    public String toChangePassword() {
        return "jsp/admin/change_password.jsp";
    }

    @RequestMapping("/bulletin_management")
    public String toBulletinManagement() {
        return "jsp/admin/bulletin_management.jsp";
    }
}
